package com.teacher.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.bedroomglory.BedroomGloryGetDto;
import com.teacher.pojo.entity.BedroomGlory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.bedroomglory.BedroomGloryGetVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 寝室荣誉 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-08-02
 */
public interface IBedroomGloryService extends IService<BedroomGlory> {

    /**
     * 查询寝室荣誉
     *
     * @param dto
     * @return
     */
    CommonResult<IPage<BedroomGloryGetVo>> getPage(BedroomGloryGetDto dto);

    /**
     * 导入寝室荣誉
     *
     * @param file
     * @return
     */
    CommonResult<String> upload(MultipartFile file);
}
